package com.example.department.Entity;

import java.sql.Date;

//报名活动志愿者表
public class Apply { // 外键两个
    private int vid; //编号
    private int userid; //报名用户
    private int applyactivity; //报名的活动
    private Date starttime;// 志愿者开始的时间
    private Date endtime; //志愿者结束的时间
    private String applylocation; //签退位置
    private String applysuccess ; //活动是否完成 默认为没有
    private User user; //用户报名的id
    private Activity activity; //报名的活动

    public Apply() {
    }

    public Apply(int vid, int userid, int applyactivity, Date starttime, Date endtime, String applylocation, String applysuccess, User user, Activity activity) {
        this.vid = vid;
        this.userid = userid;
        this.applyactivity = applyactivity;
        this.starttime = starttime;
        this.endtime = endtime;
        this.applylocation = applylocation;
        this.applysuccess = applysuccess;
        this.user = user;
        this.activity = activity;
    }

    public int getVid() {
        return vid;
    }

    public void setVid(int vid) {
        this.vid = vid;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getApplyactivity() {
        return applyactivity;
    }

    public void setApplyactivity(int applyactivity) {
        this.applyactivity = applyactivity;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public String getApplylocation() {
        return applylocation;
    }

    public void setApplylocation(String applylocation) {
        this.applylocation = applylocation;
    }

    public String getApplysuccess() {
        return applysuccess;
    }

    public void setApplysuccess(String applysuccess) {
        this.applysuccess = applysuccess;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Activity getActivity() {
        return activity;
    }

    public void setActivity(Activity activity) {
        this.activity = activity;
    }
}
